// 加载完时，body{opacity: 1}
document.addEventListener('DOMContentLoaded', function() {
    document.body.className = 'active';
})

//订单详情
document.addEventListener('DOMContentLoaded', function() {
    const allOrder = document.querySelector('.iot_userOrder span:nth-child(2)');
    allOrder.onclick=()=>{
        openingOrder(0);
    }
    const usrtOptions = document.querySelectorAll('.iot_userOptions div');
    for(let i = 0; i < usrtOptions.length-1; i++){
        usrtOptions[i].onclick=()=>{
            openingOrder(i+1);
        }
    }
})